package com.shop.controller;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.shop.pojo.sms.Sms_Member_Price;
import com.shop.service.Sms_Member_Price_Service;
import com.shop.utils.LayuiUtils;
import com.shop.utils.R;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.List;

/**
 * 商品会员价格-李贝贝
 */
@RestController
@RequestMapping("/member_price")
public class Sms_Member_Price_Controller {

    @Autowired
    private Sms_Member_Price_Service sms_member_price_service;

    /**
     * 显示所有商品会员价格
     * @param page
     * @param limit
     * @param sms_member_price
     * @return
     */
    @GetMapping("/find_Admin_Sms_Member_Price")
    public LayuiUtils<Sms_Member_Price> find_Admin_Sms_Member_Price(Integer page, Integer limit,Sms_Member_Price sms_member_price){
        Page<Sms_Member_Price> pages = new Page<>(page,limit);
        return sms_member_price_service.find_admin_sms_member_price(pages,sms_member_price);
    }

    /**
     * 删除商品会员价格
     * @param id
     * @return
     */
    @DeleteMapping("/delete_Sms_Member_Price")
    public R delete_Sms_Member_Price(@RequestParam List<Long> id){
        return sms_member_price_service.delete_sms_member_price(id);
    }

    //目前无增修
}
